import {ApiProperty} from "@nestjs/swagger";
import {IsNotEmpty, IsOptional} from "class-validator";

export class QueryBlogDto {
	@ApiProperty({ description: '过滤关键字',required:false })
	@IsOptional()
	key?: string

	@ApiProperty({ description: '过滤关键字',required:true })
	@IsNotEmpty({message: '博客类型不能为空'})
	blogType: number

	@ApiProperty({ description: '分页标识--当前页，默认为1' })
	@IsOptional()
	page?: number

	@ApiProperty({ description: '分页表示--每页显示条数，默认为10' })
	@IsOptional()
	size?: number

}